package com.lineage.server.serverpackets;

import com.lineage.server.model.Instance.L1PcInstance;

public class S_EnterGame extends ServerBasePacket {
  private byte[] _byte;
  
  public S_EnterGame(L1PcInstance pc) {
    this._byte = null;
    writeC(223);
    writeC(3);
    if (pc.getClanid() > 0) {
      writeD(pc.getClanMemberId());
    } else {
      writeC(83);
      writeC(1);
      writeC(0);
      writeC(139);
    } 
    writeC(156);
    writeC(31);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
